package day4.demo;

public class TestMain {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		//新建仓库、生产者对象、消费者对象
		Container cont = new Container();
		Productor pro  = new Productor(cont);
		Consumer cons = new Consumer(cont);
		
		//新建两个线程对象
		Thread pt = new Thread(pro);
		
		Thread ct = new Thread(cons);

		pt.start();
		ct.start();
	}

}
